Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S1939: Add support for record struct #5606

Merged
merged 28 commits into from
May 6, 2022

Conversation

martin-strecker-sonarsource
Copy link
Contributor

@martin-strecker-sonarsource martin-strecker-sonarsource commented Apr 27, 2022

This PR includes a custom ILookup implementation . It replaces the MultiValueDictionary used here. There is nothing wrong with MultiValueDictionary and it is used in multiple other places too. ILookup is just better suited for the intent here. I implemented my own ILookup because the ToLookup extension method would have introduced a big overhead.
I don't think it is worth to keep my custom Lookup implementation, as it basically does the same as the existing MultiValueDictionary. I left it for the moment in case you see value in keeping it.

@martin-strecker-sonarsource
Copy link
Contributor Author

martin-strecker-sonarsource commented May 2, 2022

Code coverage is to low because of the ILookup implementation. As this probably gets deleted anyway, I will only add tests if we keep it.

Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd remove the ILookup, I don't see enough value added by it.

Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing new, just those two last unresolved convesations.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 5, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

92.6% 92.6% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@pavel-mikula-sonarsource pavel-mikula-sonarsource left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pavel-mikula-sonarsource pavel-mikula-sonarsource merged commit 657cb55 into master May 6, 2022
@pavel-mikula-sonarsource pavel-mikula-sonarsource deleted the Martin/RecordStruct_S1939 branch May 6, 2022 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants